<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='拣货清单', subtext='管理系统中分配明细数据'" style="overflow: hidden;">

<head>
  <title>拣货清单</title>
</head>
<body style="overflow: hidden;">

  <th:block layout:fragment="content">
    <div id="query-area" class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">单号</label>
              <div class="col-sm-9">
                <input type="text" id="docNumber" name="docNumber" placeholder="输入单证编号搜索" class="form-control" />
              </div>
            </div>
          </div>

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">物料编码</label>
              <div class="col-sm-9">
                <input type="text" id="materialname" name="materialname" placeholder="输入物料编码或名称搜索" class="form-control" />
              </div>
            </div>
          </div>

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">批号</label>
              <div class="col-sm-9">
                <input type="text" id="lotNumber" name="lotNumber" placeholder="输入批号搜索" class="form-control" />
              </div>
            </div>
          </div>
          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">容器编码</label>
              <div class="col-sm-9">
                <input type="text" id="traceNumber" name="traceNumber" placeholder="输入托盘码或箱码搜索" class="form-control" />
              </div>
            </div>
          </div>
        </div>
        <div class="row m-t">
          <div class="col-lg-12 seach-button">
            <div class="pull-right">
              <button type="submit" id="search" class="btn btn-primary">
                <i class="fa fa-search"></i> 搜索
              </button>
              <button type="reset" id="clear" class="btn btn-default">
                <i class="fa fa-remove"></i> 清除
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>

    <div class="row">
      <div class="col-lg-12">
        <div class="box">
          <div class="box-body">
            <h2>
              <!--
              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="添加分配明细">
                <i class="fa fa-fw fa-plus"></i> 添加
              </a>

              <a  class="btn btn-primary btn-sm relContAll" href="javascript:;" th:title="释放当前托盘出库任务">
                <i class="fa fa-fw fa-plus"></i> 按托释放
              </a>
              <a  class="btn btn-primary btn-sm relDocAll" href="javascript:;" th:title="释放订单所有出库任务">
                <i class="fa fa-fw fa-plus"></i> 按单释放
              </a>
                -->
              <!--
             <a  class="btn btn-primary btn-sm shipContAll" href="javascript:;" th:title="确认当前托盘发货">
               <i class="fa fa-fw fa-plus"></i> 按托发货
             </a>
             <a  class="btn btn-primary btn-sm shipDocAll" href="javascript:;" th:title="确认当前整个订单发货">
               <i class="fa fa-fw fa-plus"></i> 按单发货
             </a>

              <a  class="btn btn-primary btn-sm posttoerpAll" href="javascript:;" th:title="同步分配信息至WMS">
                <i class="fa fa-fw fa-plus"></i> 同步至WMS
              </a>
             -->

              <a  class="btn btn-primary btn-sm shipLineAll" href="javascript:;" th:title="确认当前选中行发货">
                <i class="fa fa-fw fa-plus"></i> 确认发货
              </a>
             <a  class="btn btn-danger btn-sm delAll" href="javascript:;" th:title="删除分配明细">
               <i class="fa fa-fw fa-trash"></i> 删除
             </a>

                <div class="pull-right">
                    <a class="btn btn-info export" th:title="导出数据">
                        <i class="fa fa-fw fa-cloud-upload"></i> 导出数据
                    </a>
                </div>
         </h2>
         <div id="tableWrapper">
          <table id="table" class="table table-striped table-hover table-bordered table-fixed">
              <thead style="position:sticky;top:0;z-index:10;">
              <tr>
                  <th style="width:50px;">
                      <a href="javascript:;" class="selectAll" title="全选">全选</a>
                  </th>

                 <th style="width:100px;">单号</th>
                 <th style="width:60px;">行号</th>
                 <th style="width:80px;">物料</th>
                 <th style="width:220px;">物料名称</th>
                 <th style="width:50px;">数量</th>
                 <th style="width:80px;">容器编码</th>
                 <th style="width:100px;">源库位</th>
                 <th style="width:80px;">目标库位</th>
                 <th style="width:150px;">创建时间</th>
                 <th style="width:60px;">状态</th>
                 <th style="width:40px;">操作</th>

               </tr>
             </thead>
             <tbody>
             </tbody>
           </table>
         </div>
       </div>
     </div>
   </div>
 </div>
 <form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/v2/del|}">
   <input id="ids" type="hidden" name="ids" />
 </form>
 <form id="relContForm" method="post" style="display: none" th:action="@{|${baseUrl}/releasecont|}">
   <input id="ids" type="hidden" name="ids" />
 </form>
 <form id="relDocForm" method="post" style="display: none" th:action="@{|${baseUrl}/releasedoc|}">
   <input id="ids" type="hidden" name="ids" />
 </form>

  <form id="shipLineForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/shipline|}">
      <input id="ids" type="hidden" name="ids" />
  </form>

 <form id="shipContForm" method="post" style="display: none" th:action="@{|${baseUrl}/v2/shipcont|}">
   <input id="ids" type="hidden" name="ids" />
 </form>
 <form id="shipDocForm" method="post" style="display: none" th:action="@{|${baseUrl}/v2/shipdoc|}">
   <input id="ids" type="hidden" name="ids" />
 </form>
 <form id="posttoerpForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/posttoerp|}">
   <input id="ids" type="hidden" name="ids" />
 </form>


      <form id="exportForm" method="post" style="display: none" th:action="@{|${baseUrl}/ca/export|}">
      </form>

</th:block>
<th:block layout:fragment="scripts">
 <script th:src="@{|${theme}/js/app/outbound/allocation_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
</th:block>
</body>

</html>
